package me.baicai.weixin.identity.repository;

import me.baicai.weixin.entity.order.Account;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface AccountRepository extends JpaRepository<Account, Long>
{

    Account findByOpenid(String openid);

    Account findAccountByOpenid(String openid);

    Page<Account> findAllById(Integer id, Pageable pageable);

    List findAllBy(String s, Pageable pageable);
}
